Learn R Programming

kerndwd (version 1.0.1)

Haberman: Haberman's survival data set from Alon et al. (1999)

Description

Haberman's survival data (3 predictors for 306 samples) from a study on the survival of patients who had taken breast cancer surgery.

Usage

data(Haberman)

Arguments

Value

  • A list with the following elements:
  • XA numerical matrix for predictors: 305 rows and 3 columns; each row corresponds to a patient.
  • yA numeric vector of length 305 representing the survival status (1 for died within 5 years; -1 for survived 5 years or longer).

source

The data set is available for download from UCI machine learning repository. https://archive.ics.uci.edu/ml/datasets/Haberman's+Survival

Details

This data set contains 305 observations and 3 predictors representing the survival status of 305 patients. The three predictors are age of patient when the surgery was conducted, years of operations, and the number of positive axillary nodes detected. Among 305 subjects, 224 survived 5 years or longer and 81 died within 5 years.

References

Haberman, S. J. (1976). ``Generalized residuals for log-linear models'', Proceedings of the 9th International Biometrics Conference, Boston, 104--122. Lichman, M. (2013). ``UCI Machine Learning Repository", Irvine, CA: University of California, School of Information and Computer Science. http://archive.ics.uci.edu/ml

Examples

Run this code
# load kerndwd library
library(kerndwd)

# load data set
data(Haberman)

# the number of samples predictors
dim(Haberman$X)

# the number of samples for each class
sum(Haberman$y == -1) # survived
sum(Haberman$y == 1)  # died

Run the code above in your browser using DataLab